package com.core.okhttpcore;

public class Config {
    /**
     * 实例名称
     */
    private String name;
    //---------------代理设置-----------
    /**
     * http socket 两种
     */
    private String type = "http";
    private String host = "127.0.0.1";
    /**
     * 是否启用代理
     */
    private boolean proxy = false;
    private boolean ssl = false;
    private String cert = "";
    private String passphrase = "";
    private int port = 3128;

    //------------时限----------------
    private int connectTimeout=30;
    private int readTimeout=30;
    private int writeTimeout=30;

    //------------池------------------
    private int poolMaxIdleConnections=Integer.MAX_VALUE;
    private int poolKeepAlive=60;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public boolean isProxy() {
        return proxy;
    }

    public void setProxy(boolean proxy) {
        this.proxy = proxy;
    }

    public boolean isSsl() {
        return ssl;
    }

    public void setSsl(boolean ssl) {
        this.ssl = ssl;
    }

    public String getCert() {
        return cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public String getPassphrase() {
        return passphrase;
    }

    public void setPassphrase(String passphrase) {
        this.passphrase = passphrase;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public int getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(int readTimeout) {
        this.readTimeout = readTimeout;
    }

    public int getWriteTimeout() {
        return writeTimeout;
    }

    public void setWriteTimeout(int writeTimeout) {
        this.writeTimeout = writeTimeout;
    }

    public int getPoolMaxIdleConnections() {
        return poolMaxIdleConnections;
    }

    public void setPoolMaxIdleConnections(int poolMaxIdleConnections) {
        this.poolMaxIdleConnections = poolMaxIdleConnections;
    }

    public int getPoolKeepAlive() {
        return poolKeepAlive;
    }

    public void setPoolKeepAlive(int poolKeepAlive) {
        this.poolKeepAlive = poolKeepAlive;
    }
}
